<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <title>修改租户</title>
  <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
  <link rel="stylesheet" href="/static/include/css/style.css">
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="formBox">

</div>
<script id="formTpl" type="text/html">
  <form class="form-horizontal m" id="editForm" action="/admin/tenant">
    <input type="hidden" id="id" name="id" value="{{d.id || ''}}"/>
    <input type="hidden" name="oper" id="oper" value="{{d.oper || ''}}"/>
    <div class="form-group">
      <label class="col-sm-3 control-label is-required">租户名称：</label>
      <div class="col-sm-8">
        <input class="form-control" type="text" name="name" id="name" value="{{d.name || ''}}" maxlength="50">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label is-required">租户编码：</label>
      <div class="col-sm-8">
        {{# if(d.oper === 'add'){ }}
        <input class="form-control" type="text" name="code" id="code" value="{{d.code || ''}}" maxlength="30">
        {{# }else{ }}
        <input class="form-control" type="text" name="code" id="code" value="{{d.code || ''}}" maxlength="30" readonly>
        {{# } }}
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label is-required">状态：</label>
      <div class="col-sm-8">
        {{# layui.each(d.statusDict, function(index, dict){ }}
        <div class="radio-box">
          {{# if(dict.value == d.status){ }}
          <input type="radio" id="{{dict.id}}" name="status" value="{{dict.value}}" checked>
          {{# }else{ }}
          <input type="radio" id="{{dict.id}}" name="status" value="{{dict.value}}">
          {{# } }}
          <label for="{{dict.id}}"> {{dict.label}} </label>
        </div>
        {{# }); }}
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label is-required">起始时间：</label>
      <div class="col-sm-8">
        {{# if(d.startTime && d.endTime){ }}
        <input class="form-control" type="text" id="dateRange" name="dateRange" value="{{d.startTime}} 至 {{d.endTime}} "/>
        {{# }else{ }}
        <input class="form-control" type="text" id="dateRange" name="dateRange" value=""/>
        {{# } }}
      </div>
    </div>
<!--    <div class="form-group select-time">-->
<!--      <label class="col-sm-3 control-label is-required">开始时间：</label>-->
<!--      <div class="col-sm-4">-->
<!--        <input class="form-control" type="date" id="startTime" name="startTime"-->
<!--               value="{{d.startTime || ''}}"/>-->
<!--      </div>-->
<!--    </div>-->
<!--    <div class="form-group select-time">-->
<!--      <label class="col-sm-3 control-label is-required">结束时间：</label>-->
<!--      <div class="col-sm-4">-->
<!--        <input class="form-control" type="date" id="endTime" name="endTime"-->
<!--               value="{{d.endTime || ''}}"/>-->
<!--      </div>-->
<!--    </div>-->
  </form>
</script>
<script src="/static/include/js/footer.js"></script>
<script src="/static/pages/sysadm/tenant/tenantEdit.js"></script>
</body>
</html>
